/**
 * 成本操作类型
 * -1-恢复; 0-撤销;1-通过; 2-拒绝； 5-忽略
 */
export const HANDLE_ACTIVE = {
  RECOVER: -1,
  CANCEL_APPROVAL: 0,
  PASS_APPROVAL: 1,
  REFUSE_APPROVAL: 2,
  IGNORE: 5
};

/**
 * 成本审批状态
 * 0: 待审批， 1: 通过， 2: 拒绝
 */
export const APPROVAL_STATUS = {
  PENDING: 0,
  PASS: 1,
  REFUSE: 2
};

/**
 * 成本结算状态
 * 0: '待结算',2: '结算中',1: '已完成',3: '待关联',5: '已忽略'
 */
export const SETTLEMENT_STATUS = {
  TO_BE_SETTLED: 0,
  COMPLETED: 1,
  SETTLEMENT: 2,
  TO_BE_RELATED: 3,
  IGNORED: 5
};

/**
 * 成本封账状态
 * 0: '待封账',1: '已封账',2: '封账中'
 */
export const SEALING_STATUS = {
  TO_BE_SEALING: 0,
  COMPLETED: 1,
  SEALING: 2
};

/**
 * 操作类型
 * 0-单条; 1-批量;
 */
export const AMOUNT_TYPE = {
  SINGLE: 0,
  BATCH: 1
};

/**
 * 成本来源
 * 0: '渠道订单',1: '项目订单',2: '商务订单',3: '营销授权',4: '电商销售',5: '项目渠道单'
 */
export const BELONG = {
  CHANNEL: 0,
  PROJECT: 1,
  IMAGE_AUTH: 2,
  MARKET_AUTH: 3,
  COMMERCE: 4,
  PROJECT_CHANNEL: 5
};

/**
 * 审批 提交类型
 * 1: '草稿',2: '保存提交',3: '重新提交'
 */
export const SUBMITTYPE = {
  DRAFT: 1,
  SUBMIT: 2,
  RESUBMIT: 3
};
